package demo6;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class demo
{
    public static void main(String[] args)
    {
        AnnotationConfigApplicationContext an=new AnnotationConfigApplicationContext("demo6");
        person p1=an.getBean(person.class);
        System.out.println(p1);
        person p2=an.getBean(person.class);
        System.out.println(p2);
    }
}
